import React from 'react';
import s from './style.module.css';
import cn from 'classnames';
import BreadCrumbBox from '../BreadCrumbBox';

const ContentCard = ({ bread, className, content, ...props }) => {
	const { arr, children } = bread
	return <div className={cn(s.contentCard, className)} {...props}>
		<div className={s.bread}>
			<BreadCrumbBox arr={arr}>{children}</BreadCrumbBox>
		</div>
		<div className={s.content}>
			{content}
		</div>
	</div>
}

export default ContentCard;
